package com.synergy.stockflow;

import com.synergy.stockflow.model.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

@RestController
@RequestMapping("/stats")
public class IndexController {
    @PostMapping("/production/plan")
    public Result<BigDecimal> productionPlanCount() {
        return Result.success(new BigDecimal(1));
    }

    @PostMapping("/production/task")
    public Result<BigDecimal> productionTaskCount() {
        return Result.success(new BigDecimal(1));
    }

    @PostMapping("/sale/amount")
    public Result<BigDecimal> saleAmount() {
        return Result.success(new BigDecimal(1));
    }

    @PostMapping("/warehouse/stock")
    public Result<BigDecimal> productStock() {
        return Result.success(new BigDecimal(1));
    }
}
